package com.sino.example.common.exception;

import org.apache.shiro.authz.AuthorizationException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
public class MyExceptionHandle {

    @ExceptionHandler
    @ResponseBody
    public String ErrorHandle (AuthorizationException e) {
        return "没有通过验证";
    }
}
